﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Model.Models.MensagemModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Message
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Message</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm("Message", "Cliente", FormMethod.Post, new { enctype = "multipart/form-data" })) { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Mensagem</legend>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Assunto) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Assunto) %>
            <%: Html.ValidationMessageFor(model => model.Assunto) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Texto) %>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(model => model.Texto, 20, 60, "") %>
            <%: Html.ValidationMessageFor(model => model.Texto) %>
        </div>

        <div class="editor-label">
            <input type="file" value="Anexos" id="anexo" name="anexo" class="btn" />
        </div>

        <p>
            <input type="submit" name="submit" value="Enviar" />
        </p>
    </fieldset>
<% } %>

<div>
    <%: Html.ActionLink("Back to List", "Index") %>
</div>

</asp:Content>
